Good, but note that while your check for digit is fine, your check for alphabetic characters make an assumption about their values that is not guaranteed to be true.Originally Posted by Daniell Wang
Good, but note that while your check for digit is fine, your check for alphabetic characters make an assumption about their values that is not guaranteed to be true.Originally Posted by Daniell Wang
Look up a C++ Reference and learn How To Ask Questions The Smart WayOriginally Posted by Bjarne Stroustrup (2000-10-14)
EBCDIC - Wikipedia, the free encyclopedia
And use the character classification functions in ctype.h
If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
If at first you don't succeed, try writing your phone number on the exam paper.
Last edited by caroundw5h; 12-26-2012 at 06:30 PM. Reason: added {...}
Warning: Opinions subject to change without notice
The C Library Reference Guide
Understand the fundamentals
Then have some more fun